<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th rowspan="3">区域</th>
        <th rowspan="3">大区</th>
        <th rowspan="3">小区</th>
        <th rowspan="3">省份</th>
        <th rowspan="3">城市</th>
        <th rowspan="3">专营店</th>
        <th rowspan="3">专营店编码</th>
        <th rowspan="3">所属双月</th>
        <th rowspan="3">双月额度</th>
        <th colspan="18">项目活动</th>
   </tr>
   <tr>
        <th rowspan="2">项目编号</th>
        <th rowspan="2">项目名称</th>
        <th rowspan="2">标准动作</th>
        <th rowspan="2">活动类型</th>
        <th colspan="3">预算申请费用</th>
        <th colspan="4">预算审核费用</th>
        <th colspan="3">结算申请费用</th>
        <th colspan="4">结算审核费用</th>
    </tr>
    <tr>
        <th>线上广宣预算申请费用</th>
        <th>线下活动预算申请费用</th>
        <th>预算申请总费用</th>
        <th>线上广宣预算审核费用</th>
        <th>线下活动预算审核费用</th>
        <th>预算审核情况</th>
        <th>预算审核总费用</th>
        <th>线上广宣结算申请费用</th>
        <th>线下活动结算申请费用</th>
        <th>结算申请总费用</th>
        <th>线上广宣结算审核费用</th>
        <th>线下活动结算审核费用</th>
        <th>结算审核情况</th>
        <th>结算审核总费用</th>
    </tr>
    <?php
    foreach($procIds as $procId){
    	$procData = isset($procList[$procId]) ? $procList[$procId] : array();
		$storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
    ?>
	    <?php
	    if(isset($projectGroupList[$procId])){
	    	foreach($projectGroupList[$procId] as $v){
	    		$detailMoney = isset($projectMoneyDetail[$v['id']]) ? $projectMoneyDetail[$v['id']] : array();
	    ?>
	    <tr>
	        <td><?=$storeData['area'];?></td>
	        <td><?=$storeData['region'];?></td>
	        <td><?=$storeData['spsarea'];?></td>
	        <td><?=$storeData['province'];?></td>
	        <td><?=$storeData['city'];?></td>
	        <td><?=$storeData['storeName'];?></td>
	        <td><?=$storeData['coding'];?></td>
	        <td><?=$procData['timeUnitStr'];?></td>
	        <td><?=$procData['fixedMoney'];?></td>
	        <td><?=$v['id']?></td>
	    	<td><?=$v['projectName']?></td>
	    	<td><?=$v['actionTypeStr']?></td>
	    	<td><?=$v['eventTypeStr'].'-'.$v['eventClassStr']?></td>
	        <td><?=$detailMoney['budgetApply']['online'];?></td>
	        <td><?=$detailMoney['budgetApply']['offline'];?></td>
	    	<td><?=$detailMoney['budgetApply']['total'];?></td>
	        <td><?=$detailMoney['budgetAudit']['online'];?></td>
	        <td><?=$detailMoney['budgetAudit']['offline'];?></td>
            <td><?=$v['budgetAuditStr'];?></td>
	        <td><?=$detailMoney['budgetAudit']['total'];?></td>
	        <td><?=$detailMoney['settleApply']['online'];?></td>
	        <td><?=$detailMoney['settleApply']['offline'];?></td>
	        <td><?=$detailMoney['settleApply']['total'];?></td>
	        <td><?=$detailMoney['settleAudit']['online'];?></td>
	        <td><?=$detailMoney['settleAudit']['offline'];?></td>
            <td><?=$v['settleAuditStr'];?></td>
	        <td><?=$detailMoney['settleAudit']['total'];?></td>
	    </tr>
	    <?php }}?>
    <?php }?>
</table>